.menu {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 30px;
  list-style: none;
  border: $menu-border-width solid $menu-border-color;
  border-radius: $border-radius;
  box-shadow: $menu-box-shadow;

  .menu-item {
    padding: $menu-item-padding-y $menu-item-padding-x;
    cursor: pointer;
    transition: $menu-transition;
    &.hover,
    &:focus {
      text-decoration: none;
    }
    &.is-disabled {
      cursor: default;
      pointer-events: none;
      color: $menu-item-disabled-color;
    }
    &.is-active,
    &:hover {
      color: $menu-item-active-color;
      border-bottom: $menu-border-width solid $menu-item-active-color;
    }
  }
}

.menu-vertical {
  flex-direction: column;
  border-bottom: 0px;
  border-right: $menu-border-width solid transparent;
  border-top: $menu-border-width solid transparent;
  border-left: $menu-border-width solid transparent;
  margin: 10px 20px;
  .menu-item {
    &.is-active,
    &:hover {
      border-bottom: 0px;
      border-left: $menu-border-width solid $menu-item-active-color;
    }
  }
}

.submenu-item i {
  position: relative;
}

.is-vertical {
  .arrow-down-icon {
    transform: rotate(0) !important;
  }
}

.is-vertical.is-opened {
  .arrow-down-icon {
    transform: rotate(180deg) !important;
  }
}
.submenu-item {
  align-items: center;
  position: relative;
  .submenu-title {
    align-items: center;
    display: flex;
  }

  .arrow-down-icon {
    transition: transform 0.3s ease-in-out;
    margin-left: 3px;
  }
  &:hover {
    .arrow-down-icon {
      transform: rotate(180deg);
    }
  }
}

.submenu {
  display: none;
  list-style: none;
  padding-left: 0;
  white-space: nowrap;
  // transition: $menu-transition; // Uncomment if needed
}

.menu-item {
  padding: $menu-item-padding-y $menu-item-padding-x;
  cursor: pointer;
  transition: $menu-transition;
  color: $body-color;

  &.is-active,
  &:hover {
    color: $menu-item-active-color !important;
  }

  .submenu.menu-opened {
    display: block;
  }
}
